package com.alex.cms.service;

import java.util.List;

import com.alex.cms.domain.CmsArticle;
import com.alex.cms.web.vo.ArticleVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 文章内容表 服务类
 * </p>
 *
 * @author alex
 * @since 2019-09-11
 */
public interface ICmsArticleService extends IService<CmsArticle> {
	//分页获取文章列表
	public IPage<ArticleVo> selectAllArticlesByUserId(IPage<ArticleVo> page,QueryWrapper<ArticleVo> queryWrapper);
	//获取所有的文章列表
	public List<ArticleVo> selectAllArticlesByUserId(QueryWrapper<ArticleVo> queryWrapper);
	public List<CmsArticle> selectAllArticlesByHits(IPage<CmsArticle> page, QueryWrapper<CmsArticle> queryWrapper);
}
